package pile.customer.mapper;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import pile.customer.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
import pile.customer.params.user.ListDTO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 郭天义
 * @since 2024-06-01
 */
@Repository
public interface UserMapper extends BaseMapper<User> {

    /**
     *
     * @param iPage
     * @param listDTO
     * @return
     */
    IPage pageList(IPage<User> iPage, @Param("dto") ListDTO listDTO);


    User selectByOpenId(String openId);


    /**
     * 查询未接入用户
     * @return
     */
    List<User> selectUserNotConnected(@Param("dto")ListDTO listDTO);
}
